package com.example.cloud.model.business.medical;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by ygl on 2017/4/9.
 */
@Entity(name = "family_history_records")
@Data
@EqualsAndHashCode(callSuper=false)
public class FamilyHistoryRecords extends CommonModel {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @Column(name = "patient_id")
    private Long patientId;

    @Column(name = "is_have_patients")
    private Integer isHavePatients;

    @Column(name = "patients_details", length = 1000)
    private String patientsDetails;

    @Column(name = "is_have_disease")
    private Integer isHaveDisease;

    @Column(name = "disease_details", length = 1000)
    private String diseaseDetails;

    @Column(name = "is_have_special_medical")
    private Integer isHaveSpecialMedical;

    @Column(name = "special_medical_details", length = 1000)
    private String specialMedicalDetails;

    @Column(name = "other_details", length = 1000)
    private String otherDetails;

    @Column(name="account_id")
    private Long accountId;
}
